package com.ccm.demo.cloudeurekafeign.api;

import com.ccm.demo.cloudeurekafeign.entity.User;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "service1",fallback = Service1Hystrix.class)
public interface Service1 {

	@RequestMapping("add")
	Integer add(@RequestParam("a") Integer a);

	@RequestMapping(value = "getUser")
	User getUser(User user);
}
